#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_conllection.py
# author:Jackiex
# datetime:2023/4/24 11:20
# software: PyCharm

"""
this is function  description 
"""

from collections import namedtuple

# Point = namedtuple('Point', ['x', 'y'])
# p = Point(1, 2)
# print('Point:', p.x, p.y)

# from collections import deque
#
# q = deque(['a', 'b', 'c'])
# q.append('x')
# q.appendleft('y')
# print(q)

from collections import defaultdict

dd = defaultdict(lambda: 'N/A')
dd['key1'] = 'abc'
print('dd[\'key1\'] =', dd['key1'])
print('dd[\'key2\'] =', dd['key2'])
#
# from collections import Counter
# c = Counter()
# for ch in 'programming':
#     c[ch] = c[ch] + 1
# print(c)
# #
